package com.yuting;

import com.yuting.client.ClientInitClose;
import com.yuting.client.ClientScanner;
import com.yuting.client.ClientView;

import java.io.IOException;

/**
 * @author cyt
 * @date 2020/6/28
 */
public class test {
    public static void main(String[] args) {
        ClientInitClose clientInitClose = null;

        try {
            clientInitClose = new ClientInitClose();
            clientInitClose.clientInit();
            ClientView clientView = new ClientView(clientInitClose);
            clientView.clientMainPage();
        } catch (IOException | ClassNotFoundException e) {
            e.printStackTrace();
        }finally {
            try {
                clientInitClose.clientClose();
                ClientScanner.closeScanner();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
